<!DOCTYPE html>
<html>
 <meta charset='utf-8'/>
<script>
var r=prompt("请输入半径:");
var p=Math.PI;
alert("圆的面积为："+p*(r*r));
</script>
</html>